<template>
    <div class="flex ai-center jc-center">
        <p @click="load">显示显示显示</p>
        <loading></loading>
        <alert ref="alert"></alert>
    </div>
</template>

<script>
    export default {
        name: "test",
        data() {
            return {

            }
        },
        methods: {
            load() {
                console.log('yes');
                this.$refs.alert.show('是的');
            }
        },
        mounted() {
            
        }
    }
</script>

<style scoped lang="scss">
    .flex {
        width: 100vw;
        height: 100vh;

        p {
            font-size: 30px;
        }
    }
</style>